package com.yc.vote.mapper;

import com.yc.vote.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lyl
 * @since 2022-11-06
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where uname=#{uname} and pwd=#{pwd}")
    User selectByLogin(@Param("uname") String uname,
                       @Param("pwd") String pwd);
}
